package com.cos.lession77.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@ToString
@Data
@ApiModel(value = "员工类",description = "这个是记录员工信息的类")
public class Emp {
    @ExcelProperty(value = "员工id")
//    @ExcelProperty(index = 0)
    @ApiModelProperty(value = "员工主键",example = "1001")
    private Integer eno;
    @ExcelProperty(value = "员工名称")
    @ApiModelProperty(value = "员工名称",example = "张三")
    private String ename;
    @ExcelProperty(value = "员工性别")
    @ApiModelProperty(value = "员工性别",example = "男")
    private String esex;
    @ExcelProperty(value = "员工工资")
    @ApiModelProperty(value = "员工工资",example = "1000.0")
    private Double salary;
    @ExcelProperty(value = "员工密码")
    @ApiModelProperty(value = "员工密码",example = "123456")
    private String pwd;
    @ExcelProperty(value = "员工出生日期")
    @ApiModelProperty(value = "员工出生日期",example = "2020-1-1")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date bornDate;
    @ExcelProperty(value = "员工部门编号")
    @ApiModelProperty(value = "员工部门编号",example = "105")
    private Integer dno;

}